$(function() {
  if (app.getBreakpoint() !== "xs") {
    $('.menu-list a').hover(function() {
      var el = $(this);
      el.text(el.data('zh'));
    }, function() {
      var el = $(this);
      el.text(el.data('en'));
    });
  }


  var tween = TweenMax.fromTo('.gallery', 1, {
    "margin-top": "200px",
    opacity: 0
  }, {
    "margin-top": "0px",
    opacity: 1
  });


  $('.gallery').slick();
/*  $('.gallery').on('afterChange', function(event, slick, currentSlide) {
    //console.log(currentSlide);
    $('.menu-list a').removeClass('active');
    $('.menu-list a').eq(currentSlide).addClass('active');
  });*/
  $('.prod-prev').click(function(event) {
    event.stopPropagation();
    $('.gallery').slick("prev");
  });
  $('.prod-next').click(function(event) {
    event.stopPropagation();

    $('.gallery').slick("next");
  });
});